//package com.risk.login.service;
//
//import com.risk.login.api.reg.IRegService;
//import com.risk.login.dao.mapper.LoginUserMapper;
//import com.risk.login.dao.po.LoginUserPo;
//import com.risk.login.dto.LoginUserDto;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.cglib.beans.BeanCopier;
//import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Transactional;
//
//
///**
// * @Desc
// * @Date 2018/5/26:下午10:02
// * @uthor yzMa
// * @email 2641007740@qq.com
// */
//@Service("regServiceImpl")
//@Transactional(rollbackFor = Exception.class)
//public class RegServiceImpl implements IRegService {
//
//    private Logger LOGGER = LoggerFactory.getLogger(RegServiceImpl.class);
//
//    private BeanCopier copier = BeanCopier.create(LoginUserPo.class, LoginUserDto.class,false);
//
//
//    @Autowired
//    private LoginUserMapper loginUserMapper;
////    @Autowired
////    private LoginUserRepository loginUserRepository;
//
//    @Override
//    public LoginUserDto register(LoginUserPo loginUserPo) {
//        loginUserMapper.insert(loginUserPo);
//
//        LoginUserDto loginUserDto = new LoginUserDto();
//        copier.copy(loginUserPo,loginUserDto,null);
//        return loginUserDto;
//    }
//}
